Abstract Syntax Networks for Code Generation and Semantic Parsing

نویسندگان

  • Maxim Rabinovich
  • Mitchell Stern
  • Dan Klein
چکیده

Tasks like code generation and semantic parsing require mapping unstructured (or partially structured) inputs to well-formed, executable outputs. We introduce abstract syntax networks, a modeling framework for these problems. The outputs are represented as abstract syntax trees (ASTs) and constructed by a decoder with a dynamically-determined modular structure paralleling the structure of the output tree. On the benchmark HEARTHSTONE dataset for code generation, our model obtains 79.2 BLEU and 22.7% exact match accuracy, compared to previous state-ofthe-art values of 67.1 and 6.1%. Furthermore, we perform competitively on the ATIS, JOBS, and GEO semantic parsing datasets with no task-specific engineering.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Syntactic Neural Model for General-Purpose Code Generation

We consider the problem of parsing natural language descriptions into source code written in a general-purpose programming language like Python. Existing datadriven methods treat this problem as a language generation task without considering the underlying syntax of the target programming language. Informed by previous work in semantic parsing, in this paper we propose a novel neural architectu...

متن کامل

DML - a meta-language and system for the generation of practical and efficient compilers from denotational specifications

DML, the Denotational Meta Language, is a specification language and a compiler generation tool for producing practical and efficient compilers from Denotational Semantics specifications. This means that code emitted from generated compilers should be product quality, and that generated compilers should have reasonable compilation speed, and interface well with standard frontends and back-ends....

متن کامل

Design and Implementation of Tree-transformations in Ensemble Ucb Cs Honors Program Project Report

Tree transformations ooer a convenient method to describe various manipulations that are commonly performed by compilers and language-based editors. Many of the compiler stages, such as semantic analysis, code optimization, and code generation Pelegri-Llopart 1988], are frequently speciied as a sequence of tree transformations that transform parse tree into output representation (e.g. machine l...

متن کامل

Reverse Engineering of Network Software Binary Codes for Identification of Syntax and Semantics of Protocol Messages

Reverse engineering of network applications especially from the security point of view is of high importance and interest. Many network applications use proprietary protocols which specifications are not publicly available. Reverse engineering of such applications could provide us with vital information to understand their embedded unknown protocols. This could facilitate many tasks including d...

متن کامل

Yet Another Yacc for Datatypes

A parser generator automatically constructs a parser from a description of an input syntax. In this paper we discuss the Term Processor, a system that automatically constructs data structures from a simple, abstract description. In the same way as a parser generator allows functions that operate during parsing, e.g. for semantic analysis, our system allows the description and generation of func...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017